<?php

declare(strict_types=1);

namespace Modules\Teacher\Models;

use Catch\Traits\DB\BaseOperate;
use Catch\Traits\DB\ScopeTrait;
use Catch\Traits\DB\Trans;
use Illuminate\Database\Eloquent\Model;

/**
 * @property $id
 * @property $name
 * @property $phone
 * @property $password
 * @property $sc_ids
 * @property $login_ip
 * @property $login_at
 * @property $status
 * @property $creator_id
 * @property $created_at
 * @property $updated_at
*/
class Teacher extends Model
{
    use BaseOperate, Trans, ScopeTrait;

    protected $table = 'teacher';

    const CREATED_AT = 'created_at'; // 创建时间
    const UPDATED_AT = 'updated_at'; // 更新时间

    public $timestamps = true;
    public $dateFormat = "U";

    protected $fillable = [ 'id', 'name', 'phone', 'subject_ids', 'login_ip', 'login_at', 'status', 'creator_id', 'created_at', 'updated_at' ];

//    /**
//     * @var array
//     */
//    protected array $fields = ['id','name','phone','password','sc_ids','login_ip','login_at','status','created_at','updated_at'];
//
//    /**
//     * @var array
//     */
//    protected array $form = ['name','phone','password','sc_ids','login_ip','login_at','status'];

    /**
     * @var array
     */
    public array $searchable = [

    ];


}
